home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / gperf.zoo / src / Makefile < prev    next >
Encoding:
Makefile  |  1991-09-25  |  2.5 KB  |  75 lines

  1. # Copyright (C) 1989 Free Software Foundation, Inc.
  2. # written by Douglas C. Schmidt (schmidt@ics.uci.edu)
  3. # This file is part of GNU GPERF.
  4. # GNU GPERF is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 1, or (at your option)
  7. # any later version.
  8. # GNU GPERF is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU GPERF; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  15.  
  16. GXX   = g++
  17. DFLAGS= -Wall -g -DLO_CAL -DUNLIMIT_STACK # -DTRACE
  18. OFLAGS= -O -fstrength-reduce -fdelayed-branch -fsave-memoized \
  19.         -finline-functions -felide-constructors
  20. GXXFLAGS= $(DFLAGS) $(OFLAGS)
  21. prefix=/usr/local
  22. BINDIR=$(prefix)/bin
  23. LIBDIR=$(prefix)/lib
  24. MANDIR=$(prefix)/man
  25. INSTALL=install
  26. OBJS  = new.o options.o iterator.o main.o gen-perf.o key-list.o list-node.o \
  27.         hash-table.o bool-array.o read-line.o std-err.o version.o 
  28. .SUFFIXES: .cc
  29. .cc.o:
  30.     $(GXX) $(GXXFLAGS) -c  $<
  31.  
  32. all: gperf
  33.  
  34. gperf: $(OBJS) 
  35.     $(GXX) $(GXXFLAGS) -o gperf $(OBJS) -L../../src $(LIBS)
  36.  
  37. install: all
  38.     $(INSTALL) gperf $(BINDIR)/gperf
  39.  
  40. clean: 
  41.     rm -f *.o core *~ #*# mon.out
  42.  
  43. realclean: clean
  44.     rm -f gperf
  45.  
  46. depend:
  47.     g++dep *.cc
  48. # dependencies
  49. # DO NOT DELETE THIS LINE -- g++dep uses it.
  50. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  51.  
  52. bool-array.o : bool-array.cc options.h std-err.h trace.h bool-array.h 
  53. gen-perf.o : gen-perf.cc options.h std-err.h trace.h gen-perf.h key-list.h \
  54.   list-node.h vectors.h read-line.h bool-array.h 
  55. hash-table.o : hash-table.cc hash-table.h list-node.h std-err.h vectors.h \
  56.   options.h trace.h 
  57. iterator.o : iterator.cc iterator.h trace.h 
  58. key-list.o : key-list.cc options.h std-err.h trace.h read-line.h \
  59.   hash-table.h list-node.h vectors.h key-list.h 
  60. list-node.o : list-node.cc options.h std-err.h trace.h list-node.h \
  61.   vectors.h 
  62. main.o : main.cc std-err.h options.h trace.h gen-perf.h key-list.h \
  63.   list-node.h vectors.h read-line.h bool-array.h 
  64. new.o : new.cc std-err.h trace.h 
  65. options.o : options.cc options.h std-err.h trace.h iterator.h 
  66. read-line.o : read-line.cc std-err.h read-line.h trace.h 
  67. std-err.o : std-err.cc std-err.h trace.h 
  68. version.o : version.cc 
  69.  
  70. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  71.